﻿<Window x:Class="ScoreMS.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ribbon="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
        Title="学生成绩管理系统" Width="640" Height="480"
        Loaded="OnLoaded" Background="Transparent" WindowStartupLocation="CenterScreen" 
        SizeChanged="Window_SizeChanged"> <!--ResizeMode="CanMinimize"-->

    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <!-- Ribbon 开始-->
        <ribbon:Ribbon x:Name="ribbon" Height="132" Grid.Row="0">
            <!-- 菜单栏 -->
            <ribbon:Ribbon.ApplicationMenu>
                <ribbon:RibbonApplicationMenu KeyTip="M" SmallImageSource="Resource\Images\Document_16x16.png">
                    <ribbon:RibbonApplicationMenuItem Header="登陆" Tag="LoginPage" Click="RoutedEventHandler"></ribbon:RibbonApplicationMenuItem>
                    <ribbon:RibbonApplicationMenuItem/>
                    <ribbon:RibbonSeparator/>
                    <ribbon:RibbonApplicationMenuItem/>
                    <ribbon:RibbonApplicationMenuItem/>
                    <ribbon:RibbonApplicationSplitMenuItem>
                        <ribbon:RibbonApplicationMenuItem/>
                        <ribbon:RibbonApplicationMenuItem/>
                        <ribbon:RibbonApplicationMenuItem/>
                    </ribbon:RibbonApplicationSplitMenuItem>
                </ribbon:RibbonApplicationMenu>
            </ribbon:Ribbon.ApplicationMenu>
            
            <!-- 第一个 Tab ： 管理-->
            <ribbon:RibbonTab Header="管理" KeyTip="G" GroupSizeReductionOrder="Class, Pro_emphasis, Course">

                <ribbon:RibbonGroup Header="班级管理" x:Name="Class">
                    
                    <ribbon:RibbonButton Label="添加班级" Tag="ClassAdd" x:Name="btnAddClass" LargeImageSource="Resource/Images/Paste_32x32.png" SmallImageSource="Resource/Images/Paste_16x16.png"
                                              ToolTipTitle="添加班级" ToolTipDescription="添加班级"
                                              KeyTip="A" Click="RoutedEventHandler"/>
                    <ribbon:RibbonButton Label="班级列表" Tag="ClassView" x:Name="btnViewClass" LargeImageSource="Resource/Images/Paste_32x32.png" SmallImageSource="Resource/Images/Paste_16x16.png"
                                              ToolTipTitle="班级列表" ToolTipDescription="查看班级列表"
                                              KeyTip="V" Click="RoutedEventHandler"/>
                    
                    <!--    RibbonButton
                    
                    <ribbon:RibbonButton Label="测试" LargeImageSource="Resource/Images/Paste_32x32.png" SmallImageSource="Resource/Images/Paste_16x16.png"
                                              ToolTipTitle="测试" ToolTipDescription="测试描述测试描述测试描述测试描述"
                                              KeyTip="C"/>
                    -->
                    <!--    RibbonSplitButton
                    
                    <ribbon:RibbonSplitButton Label="测试" LargeImageSource="Resource/Images/Paste_32x32.png" SmallImageSource="Resource/Images/Paste_16x16.png"
                                              ToolTipTitle="测试" ToolTipDescription="测试描述测试描述测试描述测试描述"
                                              KeyTip="C">
                        <ribbon:RibbonMenuItem Header="测试2"/>
                        <ribbon:RibbonMenuItem/>
                        <ribbon:RibbonMenuItem/>
                    </ribbon:RibbonSplitButton>
                    -->
                    
                </ribbon:RibbonGroup>

                <ribbon:RibbonGroup Header="专业方向管理" x:Name="Pro_emphasis">
                    <ribbon:RibbonButton Label="添加专业方向" Tag="Pro_emphasisAdd" x:Name="btnAddPro_emphasis" LargeImageSource="Resource/Images/Paste_32x32.png" SmallImageSource="Resource/Images/Paste_16x16.png"
                                              ToolTipTitle="添加专业方向" ToolTipDescription="添加专业方向"
                                              KeyTip="A" Click="RoutedEventHandler"/>
                    <ribbon:RibbonButton Label="专业方向列表" Tag="Pro_emphasisView" x:Name="btnViewPro_emphasis" LargeImageSource="Resource/Images/Paste_32x32.png" SmallImageSource="Resource/Images/Paste_16x16.png"
                                              ToolTipTitle="专业方向列表" ToolTipDescription="查看专业方向列表"
                                              KeyTip="V" Click="RoutedEventHandler"/>
                </ribbon:RibbonGroup>

                <ribbon:RibbonGroup Header="课程管理" x:Name="Course">
                    <ribbon:RibbonButton Label="添加课程" Tag="CourseAdd" x:Name="btnAddCourse" LargeImageSource="Resource/Images/Paste_32x32.png" SmallImageSource="Resource/Images/Paste_16x16.png"
                                              ToolTipTitle="添加专业方向" ToolTipDescription="添加专业方向"
                                              KeyTip="A" Click="RoutedEventHandler"/>
                    <ribbon:RibbonButton Label="查看课程列表" Tag="CourseView" x:Name="btnViewCourse" LargeImageSource="Resource/Images/Paste_32x32.png" SmallImageSource="Resource/Images/Paste_16x16.png"
                                              ToolTipTitle="查看课程列表" ToolTipDescription="查看课程列表"
                                              KeyTip="V" Click="RoutedEventHandler"/>
                    <ribbon:RibbonButton Label="查看教学大纲" Tag="SyllabusAdd" x:Name="btnAddSyllabus" LargeImageSource="Resource/Images/Paste_32x32.png" SmallImageSource="Resource/Images/Paste_16x16.png"
                                              ToolTipTitle="查看教学大纲" ToolTipDescription="查看教学大纲、添加知识点"
                                              KeyTip="AZ" Click="RoutedEventHandler"/>
                </ribbon:RibbonGroup>
                
            </ribbon:RibbonTab>
            <ribbon:RibbonTab Header="教师" KeyTip="J" GroupSizeReductionOrder="Personal">
                
                <ribbon:RibbonGroup Header="个人管理" x:Name="Personal">
                    <ribbon:RibbonButton Label="添加带课信息" Tag="PersonalCourseAdd" x:Name="btnAddPersonalCourse" LargeImageSource="Resource/Images/Paste_32x32.png" SmallImageSource="Resource/Images/Paste_16x16.png"
                                              ToolTipTitle="添加带课信息" ToolTipDescription="添加带课信息"
                                              KeyTip="A" Click="RoutedEventHandler"/>
                    <ribbon:RibbonButton Label="查看带课列表" Tag="PersonalCourseView" x:Name="btnViewPersonalCourse" LargeImageSource="Resource/Images/Paste_32x32.png" SmallImageSource="Resource/Images/Paste_16x16.png"
                                              ToolTipTitle="查看带课列表" ToolTipDescription="查看带课列表"
                                              KeyTip="V" Click="RoutedEventHandler"/>
                </ribbon:RibbonGroup>
                
            </ribbon:RibbonTab>
            <ribbon:RibbonTab Header="考试" KeyTip="K" GroupSizeReductionOrder="Examination_paper">
                <ribbon:RibbonGroup Header="试卷管理" x:Name="Examination_paper">
                    <ribbon:RibbonButton Label="添加试卷" Tag="Examination_paperAdd" x:Name="btnAddExamination_paper" LargeImageSource="Resource/Images/Paste_32x32.png" SmallImageSource="Resource/Images/Paste_16x16.png"
                                              ToolTipTitle="添加试卷" ToolTipDescription="添加试卷信息"
                                              KeyTip="A" Click="RoutedEventHandler"/>
                    <ribbon:RibbonButton Label="编辑试卷" Tag="Examination_paperEdit" x:Name="btnEditExamination_paper" LargeImageSource="Resource/Images/Paste_32x32.png" SmallImageSource="Resource/Images/Paste_16x16.png"
                                              ToolTipTitle="编辑试卷" ToolTipDescription="为试卷添加题目信息，及所涉及的知识点"
                                              KeyTip="A" Click="RoutedEventHandler"/>
                    <ribbon:RibbonButton Label="查看试卷" Tag="Examination_paperView" x:Name="btnViewExamination_paper" LargeImageSource="Resource/Images/Paste_32x32.png" SmallImageSource="Resource/Images/Paste_16x16.png"
                                              ToolTipTitle="查看试卷" ToolTipDescription="查看试卷信息"
                                              KeyTip="V" Click="RoutedEventHandler"/>
                </ribbon:RibbonGroup>

                <ribbon:RibbonGroup Header="考试成绩管理" x:Name="Score">
                    <ribbon:RibbonButton Label="单个添加成绩" Tag="ScoreSingleAdd" x:Name="btnAddScoreSingle" LargeImageSource="Resource/Images/Paste_32x32.png" SmallImageSource="Resource/Images/Paste_16x16.png"
                                              ToolTipTitle="单个添加成绩" ToolTipDescription="单个添加成绩信息"
                                              KeyTip="SA" Click="RoutedEventHandler"/>
                    <ribbon:RibbonButton Label="批量添加成绩" Tag="ScoreMultiAdd" x:Name="btnAddScoreMulti" LargeImageSource="Resource/Images/Paste_32x32.png" SmallImageSource="Resource/Images/Paste_16x16.png"
                                              ToolTipTitle="批量添加成绩" ToolTipDescription="批量添加成绩信息"
                                              KeyTip="MA" Click="RoutedEventHandler"/>                    
                </ribbon:RibbonGroup>

                <ribbon:RibbonGroup Header="平时成绩管理" x:Name="ScoreOther">
                    <ribbon:RibbonButton Label="单个添加成绩" Tag="ScoreOtherSingleAdd" LargeImageSource="Resource/Images/Paste_32x32.png" SmallImageSource="Resource/Images/Paste_16x16.png"
                                              ToolTipTitle="单个添加成绩" ToolTipDescription="单个添加成绩信息"
                                              KeyTip="SA" Click="RoutedEventHandler"/>
                    <ribbon:RibbonButton Label="批量添加成绩" Tag="ScoreOtherMultiAdd" LargeImageSource="Resource/Images/Paste_32x32.png" SmallImageSource="Resource/Images/Paste_16x16.png"
                                              ToolTipTitle="批量添加成绩" ToolTipDescription="批量添加成绩信息"
                                              KeyTip="MA" Click="RoutedEventHandler"/>
                </ribbon:RibbonGroup>

                <ribbon:RibbonGroup Header="导出管理" x:Name="Output">
                    <ribbon:RibbonButton Label="导出详细成绩表" Tag="OutputDetailScore" x:Name="btnOutputDetailScore" LargeImageSource="Resource/Images/Paste_32x32.png" SmallImageSource="Resource/Images/Paste_16x16.png"
                                              ToolTipTitle="导出详细成绩表" ToolTipDescription="导出详细成绩表"
                                              KeyTip="O" Click="RoutedEventHandler"/>
                </ribbon:RibbonGroup>

            </ribbon:RibbonTab>
            <ribbon:RibbonTab Header="系统" KeyTip="X" GroupSizeReductionOrder="Class">
                <ribbon:RibbonGroup>
                    <ribbon:RibbonSplitButton Label="测试">
                        <ribbon:RibbonMenuItem Header="测试2"/>
                        <ribbon:RibbonMenuItem/>
                        <ribbon:RibbonMenuItem/>
                    </ribbon:RibbonSplitButton>
                    <ribbon:RibbonButton Label="测试3"/>
                    <ribbon:RibbonButton/>
                    <ribbon:RibbonButton/>
                </ribbon:RibbonGroup>
            </ribbon:RibbonTab>
        </ribbon:Ribbon>

        <!-- Height="300" Width="618" -->
        <Frame x:Name="frame"  Grid.Row="1" Source="Views/Default.xaml"
               NavigationUIVisibility="Hidden" Navigated="frame_Navigated">
            <!--
            <Grid Margin="0,138,0,0" Grid.RowSpan="2">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="188*" />
                    <ColumnDefinition Width="430*" />
                </Grid.ColumnDefinitions>
                <StackPanel Grid.Row="0" Grid.Column="0" Height="291" HorizontalAlignment="Left" Margin="6,6,0,0" Name="stackPanel1" VerticalAlignment="Top" Width="182">
                    <TextBlock Text="{Binding Path=Teacher.wage_id}"></TextBlock>
                    <TextBlock Text="{Binding Path=Teacher.teacher_name}"></TextBlock>
                    <TextBlock Text="{Binding Path=Teacher.teacher_title}"></TextBlock>
                </StackPanel>
            </Grid>
            -->
        </Frame>
    </Grid>
</Window>
